package com.luguangtao.api;

import com.github.pagehelper.PageInfo;
import com.luguangtao.bean.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @类名: com.luguangtao.api
 * @作者: lgt
 * @创建时间: 2019-12-09 09:16
 * @描述:
 **/
@FeignClient(name = "CLIENT01")
public interface ClientApi {
    //登录
    @RequestMapping("login1")
    public String login1(@RequestParam String username, @RequestParam String password);

    //注册
    @RequestMapping("regist1")
    public int regist1(@RequestBody User user);

    //列表
    @RequestMapping("lists1")
    public PageInfo<User> lists1(@RequestParam Integer pageNum, @RequestParam Integer pageSize, @RequestParam String names);
}
